package com.itheima.service;

import com.itheima.domain.Order;
import com.itheima.domain.Setmeal;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderService {
    Result order(Map map) throws Exception;

    Map findById(Integer id) throws Exception;

    List<Setmeal> findSetmealById(Integer id);

    List<Setmeal> findSetmealByIdAndDate(String memberId, String startDate, String endDate);

    /*查询所有的套餐*/
    List<Setmeal> findSetmeal();

    /*完成预约*/
    Result result(Integer setmealIds, Map map)throws Exception;

    /*分页查询*/
    PageResult findPage(String param, Map map) throws Exception;

    /*删除预约数据*/
    void delete(Integer id) throws Exception;

    /*更新预约状态*/
    void updateStatus(Integer id);

    /*根据id查询预约数据*/
    Map findOrderById(Integer id);

    /*查询套餐id*/
    List<Integer> findSetmealId(Integer id);

    /*更新预约数据*/


    Result resultByUpdate (Integer setmealIds, Map map) throws Exception;

    //根据预约订单id添加医生建议
    void statusEdit(Order order);

    //健康干预查询所有预约信息
    PageResult findPage22(QueryPageBean queryPageBean);



}
